import request from '@/utils/request'

// 列表
export const getTrainList = data => request('/system/train/list', 'get', data)

// 新增
export const addTrain = data => request('/system/train', 'post', data)

// 获取培训详情
export const getTrainDetail = id => request(`/system/train/${id}`, 'get')

// 修改
export const modifyTrain = data => request('/system/train', 'put', data)
